import layout from '../layout/layout.vue'
import index from '../pages/index.vue'
function load (component) {
  return () => import(`../pages/${component}.vue`)
}
export default [
  {
    path: '/',
    component: layout,
    meta: { requireAuth: true },
    children: [
      { path: '', component: index, meta: { title: 'test', requireAuth: true } },
      { path: 'monitor', component: load('monitor'), meta: { title: '监控', requireAuth: true } },
      { path: 'KManage', component: load('KManage'), meta: { title: 'k管理', requireAuth: true } },
      { path: 'RManage', component: load('RManage'), meta: { title: 'r管理', requireAuth: true } },
      { path: 'log/realTimeLog', component: load('realTimeLog'), meta: { title: '实时日志', requireAuth: true } },
      { path: 'log/historyLog', component: load('historyLog'), meta: { title: '历史日志', requireAuth: true } }
    ]
  }
]
